package com.edan.partnerback.common.enums;

import lombok.Getter;

/**
 * @Description 功能描述
 * @Author Edan
 * @Create 2024/3/28 22:06
 */
@Getter
public enum emailStatus {


    REGISTER("register"), //注册使用
    LOGIN("login"),//账号已存在时前缀
    RESETPASSWORD("resetpassword"),//重置密码
    NOTKNOW("");

    private final String value;

    emailStatus(String value) {
        this.value = value;
    }

    public static emailStatus getStatus(String type) {
        emailStatus[] values = values();
        for (emailStatus emailStatus : values) {
            if (emailStatus.name().equals(type)) {
                return emailStatus;
            }
        }
        return NOTKNOW;
    }

}
